package com.jeeplus.test.jlnu.admissionInfo.controller;

import com.jeeplus.test.jlnu.admissionInfo.service.AdmissionApprovService;
import com.jeeplus.test.tools.resp.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "录取信息审批")
@RestController
@Slf4j
@RequestMapping("/admissionApprove")
public class AdminissionInfoApproveController {
    @Resource
    private AdmissionApprovService admissionApprovService;

    @ApiOperation("录取信息批量审批")
    @RequestMapping("/adminissionInfoApprove")
    public R AdminissionInfoApproveController(@RequestParam String state,
                                              @RequestParam String type,
                                              @RequestParam List<String> ids) {
        admissionApprovService.approveAdmissionInfo(state,type, ids);
        return R.suc("成功");
    }
}
